<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        //【1】toString用来返回对象的字符串表示。
        var obj = {};
        console.log(obj.toString()); //[object Object]

        var date = new Date();
        console.log(date.toString()); //Sun Feb 28 2016 13:40:36 GMT+0800 (中国标准时间)
    </script>
</body>

</html>